/**
 * 大类
 */
var bizTypeMap ={
		"2":"危险化学品",
		"3":"民爆物品",
		"1":"枪支弹药",
		"4":"放射性物品",
		"5":"烟花爆竹",
		"6":"硝酸铵复混肥",
		"7":"散装汽油",
		"8":"运输",
		"9":"弩",
		"10":"管制刀具",
		"11":"射钉器"
};
var linkMap = {
		"1-0":"通用",
		"2-0":"通用",
		"3-0":"通用",
		"4-0":"通用",
		"5-0":"通用",
		"6-0":"通用",
		"7-0":"通用",
		"1-1":"生产",
		"1-4":"销售",
		"1-5":"使用",
		"2-1":"生产",
		"2-2":"存储",
		"2-3":"运输",
		"2-4":"经营",
		"2-5":"使用",
		"2-6":"处置",
		"3-1":"生产",
		"3-3":"运输",
		"3-4":"销售",
		"3-5":"使用",
		"4-1":"生产",
		"4-3":"运输",
		"4-4":"销售",
		"4-5":"使用",
		"4-6":"处置",
		"5-2":"批发",
		"5-3":"运输",
		"5-4":"零售",
		"5-5":"燃放",
		"6-1":"生产",
		"6-4":"销售",
		"7-4":"经营",
		"9-1":"生产",
		"9-5":"使用",
		"10-1":"生产",
		"10-4":"销售",
		"11-1":"生产",
		"11-4":"销售"
};
/**
 * 企业字段
 */
var colMap = {
		"APPROVED_DATE":"核准日期",
		"REGISTER_OFFICE":"登记机关/登记管理机关",
		"REGISTERED_ADDRESS":"登记地址",
		"BUSINESS_SCOPE":"经营范围/宗旨和业务范围",
		"ENTERPRISE_TYPE":"企业类型 ",
		"ESTABLISHMENT_DATE":"建立时间",
		"LEGAL_REPRESENTATIVE":"法定负责人",
		"OPERATING_FROM_DATE":"操作开始时间",
		"OPERATING_TO_DATE":"操作结束时间",
		"LEGAL_REPRESENTATIVE_NO":"企业法人代码",
		"CREDIT_CODE":"统一社会信用代码",
		"LEGAL_REPRESENTATIVE_":"",
		"BIZ_TYPE":"大类",
		"ENTERPRISE_PROPERTY":"单位性质 ",
		"ORGANIZER":"举办单位",
		"ISSUE_OFFICE":"制发机关",
		"BUSINESS_LICENSE_FILE":"营业执照/事业单位法人证书附件",
		"FUNDING_SOURCES":"经费来源 ",
		"LEGAL_REPRESENTATIVE_TEL":"法人/负责人联系电话",
		"MERCHANTS_TYPE":"是否子公司1是 0否",
		"PARENT_COMPANY_ID":"母公司ID",
		"PARENT_COMPANY_NAME":"母公司名称",
		"REGISTER_NUMBER":"登记号",
		"SAFETY_DIRECTOR":"保卫负责人",
		"SAFETY_DIRECTOR_ATTACH_ID":"保卫负责人照片(ATTACHMENT对应ID)",
		"SAFETY_MANAGEER_NUMBER":"安全管理人员数量(ATTACHMENT对应ID)",
		"FIXED_LINE_PHONE":"固定电话",
		"POLICE_STATION_ID":"属地派出所ID",
		"POLICE_STATION_NAME":"属地派出所名称",
		"DISTRICT_POLICE_ID":"责任区民警编号",
		"DISTRICT_POLICE_NAME":"责任区民警名称",
		"BUSINESS_LICENSE_FLAG":"营业执照判断标识 ",
		"VIDEO_NUMBER":"视频监控设备数量",
		"WARNING_DEVICE":"报警装置",
		"LINKS_CONCERNED":"易制爆危化品涉及环节代码",
		"ZXBZ":"是否注销  key=zxbz",
		"DATA_UNIT_ID":"数据归属单位代码",
		"DATA_UNIT_NAME":"数据归属单位名称",
		"INSERT_TIME":"登记时间",
		"UPDATE_TIME":"更新时间",
		"PRINCIPAL":"主要负责人",
		"COMMERCIAL":"营业性质",
		"PARENT_COMPANY_AREA":"母公司行政区划",
		"COMPANY_LEVEL":"公司级别（母公司：1，分公司：2，项目组：3）",
		"TOP_ENTERPRISE_ID":"最顶级公司ID",
		"BASIC_ID":"自增唯一",
		"ENTERPRISE_ID":"企业ID(PLAYTYPE||000||七位源企业表ID,不足前面补0)",
		"ENTERPRISE_NAME":"企业名称/单位名称",
		"CERTIFICATE_NUMBER":"证件号",
		"ORG_CODE":"组织机构编码",
		"AREA":"行政区划",
		"LONGITUDE":"经度",
		"LATITUDE":"纬度",
		"ADDRESS":"地址",
		"REGISTERED_NO":"注册号",
		"LINK":"环节",
		"REGISTERED_CAPITAL":"注册资本",
		"REGISTER_STATUS":"经营状态 ",
		"REGISTERED_CAPITAL_UNIT":"注册资本单位 "
};
function getBizTypeName(bizTypes){
	var keys = bizTypes.split('-');
	var names = new Array();
	for(var i=0; i<keys.length; i++) {
		names.push(bizTypeMap[keys[0]]);
	}
	return names;
}
function getBizLink(bizTypes, links) {
	var bizTypeKeys = bizTypes.split('-');
	var bizTypeNames = new Array();
	for(var i=0; i<bizTypeKeys.length; i++) {
		bizTypeNames.push(bizTypeMap[bizTypeKeys[0]]);
	}
	var links_1 = links.split('-');
	var linkNames = new Array();
	for(var i=0; i<links_1.length; i++) {
		var links_2 = links_1[i].split(',');
		for(var j=0; j<links_2.length; j++) {
			var link_key = bizTypeKeys[i] + '-' + links_2[j];
			linkNames.push(linkMap[link_key]);
		}
	}
	return {
		bizTypes: bizTypeNames,
		links: linkNames
	}
}